package com.xzk.user.service;

import com.xzk.user.mapper.UserMapper;
import com.xzk.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Classname UserService
 * @Description TODO
 * @Date 2020/9/22 11:02
 * @Created by ccc-j
 * @email ccc-ju@outlook.com
 */
@Service
public class UserService {

    @Autowired
    private UserMapper userMapper;

    public User queryById(Long id){
        return userMapper.selectByPrimaryKey(id);
    }

}
